excelRoot=../../excel
if [ ! -d $excelRoot ]; then
    echo "excel目录不存在"
    exit 1
fi

exportPy="$excelRoot/exporter/export_config.py"
clientRoot=../
clientScriptRoot=$clientRoot/assets/script

python $exportPy --lang=ts -c $excelRoot $clientScriptRoot --suffix=Config --case=camel_upper $@
if [ $? -eq 0 ]; then
    echo "客户端配置导出成功"
else
    echo "error: 客户端配置导出失败"
    exit 1
fi

echo "\n"

serverRoot=../../server
serverModuleRoot=$serverRoot/modules
python $exportPy --lang=lua -s $excelRoot $serverModuleRoot --suffix=Config --case=camel_upper $@